package com.example.select3;

import java.util.ArrayList;
import java.util.List;

public class Plant {

    public String icon;
    public String title;
    public String desc;



    public static List<Plant> getDefaultPlants(){
        List<Plant> plants = new ArrayList<>();

        Plant p = new Plant();
        p.setIcon("金星");
        p.setTitle("金星");
        p.setDesc("大大的金星");

        plants.add(p);

        p = new Plant();
        p.setIcon("木星");
        p.setTitle("木星");
        p.setDesc("大大的木星");

        plants.add(p);

        p = new Plant();
        p.setIcon("水星");
        p.setTitle("水星");
        p.setDesc("大大的水星");

        plants.add(p);

        return plants;
    }


    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "Plant{" +
                "icon='" + icon + '\'' +
                ", title='" + title + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }
}
